<?php
/**
 * Created by PhpStorm
 * User: honglin
 * Date: 2022/9/8
 * Time: 下午3:52
 */

namespace Yj\Model;

use App\Model\System\SystemFile;

trait ImageTrait
{
    public function Image()
    {
        return $this->hasOne(SystemFile::class, 'id', 'image_id')->withDefault(function () {
            return App(SystemFile::class)->where('id', '455')->first();
        });
    }
}